package com.fw.service;

import java.util.List;

import com.fw.model.Permission;
import com.fw.model.Role;
import com.fw.model.User;

public interface UserService {
	public User query_userByUNameAndUPwdService(User user);
	public Integer query_totalUserService(String sql);
	public List<User> query_allUserByPageService(String sql,int firstPage,int maxPage);
	public boolean delete_userByIdService(User user);
	public boolean add_userService(User user);
	public boolean update_userService(User user);
	public User query_userByIdService(User user);
	public Role query_roleByUserService(User user);
	public boolean update_roleByUserService(User user,Role role);
	public boolean userIsPermissionService(User user, Permission permisson);
	public boolean update_user_pwdService(User user);
}
